<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>v-for</title>
    <script src="../../js/vue3.js"></script>
    <style>
        #app {
            margin: 2rem auto;
            width: 30%;
        }
        
        p {
            font-size: 1.5rem;
            font-weight: bold;
        }
    </style>
</head>

<body>
    <div id="app">
        <p v-for="(key,value,index) in student">
            {{index+1}}-{{value}}--{{key}}
        </p>


    </div>
    <script>
        const v_app = Vue.createApp({
            data() {
                return {
                    student: {
                        name: "邮箱",
                        age: 17,
                        weight: "100kg"
                    }
                }
            },
            methods: {

            },
        });
        v_app.mount("#app");
    </script>
</body>

</html>